<?php


namespace App\Models;


use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;

class BatchInventory extends Model
{
    use SoftDeletes;

    protected $fillable = ['customer_id', 'product_id', 'location_id', 'warehousing_id', 'customer_id', 'attribute', 'barcode', 'quantity', 'attribute', 'batch'];

    /**
     * @return \Illuminate\Database\Eloquent\Relations\BelongsTo
     * @author luffyzhao@vip.126.com
     */
    public function location(){
        return $this->belongsTo(Location::class);
    }
}